package com.ccl.iot.object;

public class IOTTime {
	public int iYear;
	public byte iMonth;
	public byte iDay;
	public byte iHour;
	public byte iMinute;
	public byte iSecond;
	
	public IOTTime(int aYear, byte aMonth, byte aDay, byte aHour, byte aMinute, byte aSecond){
		iYear = aYear;
		iMonth = aMonth;
		iDay = aDay;
		iHour = aHour;
		iMinute = aMinute;
		iSecond = aSecond;
	}

	@Override
	public String toString() {
		return iYear + "-" + iMonth + "-" + iDay + " " + iHour + ":" + iMinute + ":" + iSecond;
	}
}
